import request from '@/utils/request';

// 上传图片
export function uploadImage(data: FormData) {
  return request({
    url: '/api/upload/image',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  });
}

// 上传头像
export function uploadAvatar(data: FormData) {
  return request({
    url: '/api/upload/avatar',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  });
} 